<%
mentionable = notification.target
%>

<% if mentionable.is_a?(Comment) %>
  <%= mentionable.commentable_title %> <%= t(".got a comment") %>
<% elsif mentionable.is_a?(Doc) %>
  <%= mentionable.title %> <%= t(".got a mention") %>
<% end %>